var oTable;
var selected_id;
$(document).ready(function() {
	oTable = $('#rolesTable').dataTable({
		"bFilter" : false,
		 "bLengthChange": false,
		"bStateSave" : false,
		"bSort": false,	
		"bInfo": false,
		"sPaginationType" : "bootstrap",
		"oLanguage" : {
			"sLengthMenu" : "Display _MENU_ records per page",
			"sZeroRecords" : "Nothing found - sorry",
			"sInfo" : "Showing _START_ to _END_ of _TOTAL_ records",
			"sInfoEmpty" : "Showing 0 to 0 of 0 records"
		},
		"bProcessing" : true,
		"bServerSide" : true,
		"sAjaxSource" : "companyEmployeesList",
		"aoColumns" : [ {"mData" : "fName" },
		                {"mData" : "id"}
		               ],
		"aoColumnDefs": [
						{"aTargets": [0],"mData": null,"mRender": function (data, type, full) {
							return "<strong style='color:#0088cc;'>"+data+"</strong>";
						}
						},
		                 {"aTargets": [1],"mData": null,"mRender": function (data, type, full) {
		                	 return  "<div class='btn-group pull-right'><button class='btn btn-inverse dropdown-toggle' data-toggle='dropdown' data-hover='dropdown'>Actions<span class='caret'></span></button><ul class='dropdown-menu'><li><a href='#'><i class='icon-trash'></i> Delete</a></li><li><a href='rolesList?empId="+data+"' data-toggle='modal' id='rolebtn'><i class='icon-pencil'></i> Change Roles</a></li></ul></div>";
		                 }
		                }]
	});
});